package com.tc.controller;

import com.tc.model.vo.SendVerificationCodeReqVO;
import com.tc.operationlog.aspect.ApiOperationLog;
import com.tc.common.response.Response;
import com.tc.service.VerificationService;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class VerificationController {

    @Resource
    private VerificationService verificationService;
    @PostMapping("/verification/code/send")
    @ApiOperationLog(description = "验证码发送接口")
    public Response<?> send(@Validated @RequestBody SendVerificationCodeReqVO sendVerificationCodeReqVO){
        return verificationService.send(sendVerificationCodeReqVO);
    }
}
